
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
        xmlns:c="http://java.sun.com/jstl/core" 
        xmlns:p="http://primefaces.org/ui"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        
        >

    <ui:composition template="template.xhtml">
        <ui:define name="content">
  <div id="body">
        <div class="panel">

            <h2>Your Account Information</h2>

            <h:messages layout="table" styleClass="error"/>

            <h:form>

                <div class="zoneEditor">
                    <h3>Personal information</h3>

                    <p:panelGrid columns="2">
                        <h:outputText value="Firstname :"/>
                        <h:outputText value="#{account.customer.firstname}"/>

                        <h:outputText value="Lastname :"/>
                        <h:outputText value="#{account.customer.lastname}"/>

                        <h:outputText value="Email :"/>
                        <h:outputText value="#{account.customer.email}"/>

                        <h:outputText value="Telephone :"/>
                        <h:outputText value="#{account.customer.telephone}"/>

                        <h:outputText value="Date of birth (dd.MM.yyyy):"/>
                        <h:outputText value="#{account.customer.dateOfBirth}">
                            <f:convertDateTime pattern="dd.MM.yyyy"/>
                        </h:outputText>

                        <h:outputText value="Age :"/>
                        <h:outputText value="#{account.customer.age}"/>

                    </p:panelGrid>
                </div>

                <div class="zoneEditor">
                    <h3>Address</h3>

                    <p:panelGrid columns="2">
                        <h:outputText value="Street1 :"/>
                        <h:outputText value="#{account.homeAddress.street1}"/>

                        <h:outputText value="Street2 :"/>
                        <h:outputText value="#{account.homeAddress.street2}"/>

                        <h:outputText value="City :"/>
                        <h:outputText value="#{account.homeAddress.city}"/>

                        <h:outputText value="State :"/>
                        <h:outputText value="#{account.homeAddress.state}"/>

                        <h:outputText value="Zipcode :"/>
                        <h:outputText value="#{account.homeAddress.zipcode}"/>

                        <h:outputText value="Country :"/>
                        <h:outputText value="#{account.homeAddress.country}"/>

                    </p:panelGrid>
                </div>

                <div class="zoneButton">
                    <p:commandLink action="updateaccount.jsf?faces-redirect=true">
                        <h:outputText value="Edit Your Account Information"/>
                    </p:commandLink>
                </div>
            </h:form>

        </div>
    </div>

            
</ui:define>
	
        
    </ui:composition>
</html>

